/**
 * @author Kristian Mandrup
 * @date May 25, 2009
 * @version 0.1
 * 
 * m3gen : RuleSet configuration (person)
 * 
 * ruleSet with languageData defined for branchTypeRules
 */

// RuleSet : person
var ruleSet_person = {
    branchTypeRules: {
        'folder': {
			data: {
				en: {
					icon: 'folder_en.png'
				},
				dk: {
					icon: 'folder_dk.png'
				},
				'default': {
					icon: 'folder.png'
				}
			},            
            state: 'closed'
        }
    },
    functions: personSelectFunctions,
	// one childBranch for selecting boys and putting them in 'My boys' folder node	
    branchRules: [{
        branchDef: {
            id: 'boys',
            data: {
				en: {
					title: 'My boys'
				},
				dk: {
					title: 'Mine drenge'
				}
			},				
            branchType: 'folder'
        },
        selectors: ['myChildren.boys']
    }],
	
	// local settings overriding global settings	
    defaultState: 'closed',
    useUniqueId: true,
    iconsPath: 'images/person'
	// pathMethod: 'jpath'
}

